<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>编辑科室</title>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <link href="/css/style3.css" rel="stylesheet">
    <link href="/css/style4.css" rel="stylesheet">
</head>
<body>
<div th:insert="~{admin/header1}"></div>
<main id="main">
    <section class="breadcrumbs">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center">
                <ol>
                    <li><a href="#">首页</a></li>
                    <li><a href="#">编辑科室</a></li>
                </ol>
            </div>
        </div>
    </section>
    <section class="inner-page">
        <div class="container">
            <div class="card">
                <div class="card-header">
                    <h3 class="card-title">编辑科室</h3>
                </div>
                <div class="card-body mt-3">
                    <form th:action="@{/departments/{id}(id=${department.id})}" th:method="post" th:object="${department}" >
                        <input type="hidden" th:field="*{id}" />
                        <div class="mb-2" style="display: flex;">
                            <div class="col-4 d-flex " >
                                <label for="kNo" class="form-label col-4">科室编号:</label>
                                <input type="text" id="kNo"  th:field="*{kNo}" class="form-control" required>
                            </div>
                            <div class="col-4 d-flex text-center" >
                                <label for="dName" class="form-label col-4">科室名称:</label>
                                <input type="text" id="dName"  th:field="*{dName}" class="form-control" required>
                            </div>
                        <div class="col-4 d-flex text-center" >
                            <label for="type" class="form-label col-4">科室类别:</label>
                            <input type="text"  id="type" th:field="*{type}" class="form-control" required>
                        </div>
                        </div>
                        <div class="mb-3" >
                            <label for="detail" class="form-label" >详情描述:</label>
                            <div > <textarea id="detail"  th:field="*{detail}" class="form-control" rows="8"></textarea></div>
                        </div>

                        <div class="text-center">
                            <button type="submit" class=" btn btn1 ">更新</button>
                            <button th:href="@{/departments}" href="#"class=" btn btn2 " >取消</button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </section>
</main>
<script src="js/main.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script>
</body>
</html>
